﻿using Engine;
using Engine.Graphics;
using Game;

namespace Mekiasm
{
    public class Hydrogen : ItemFlat,Interface.IAnimateBlockTexture
    {
        public static int Index;
        public Hydrogen() : base("氢气", null)
        {

        }

        public string AnimateTextureName => "hydrogen_still";

        public Matrix AnimateTextureTranform => Matrix.Identity;

        public Color AnimateColorTransForm => Color.White;

        public override void Initilize()
        {
            texture2D = FluidSystem.GetFluidRenderTexture(blockValue);
        }
        public override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
        {
            color = AnimateColorTransForm;
            base.DrawBlock(primitivesRenderer, value, color, size, ref matrix, environmentData);
        }

        public override string GetCategory(int value)
        {
            return MekiasmInit.categories_terrain;
        }
    }
}
